Address: http://www.dutor.net/index.php/2010/06/cmd-ls/ [Command tips] ls
Ls = List: lists information about a specified directory or file based on different options. It is one of the most common commands in Unix/Linux, CD to a directory and then run the first command. Ls
Ls without parameters lists the files and directories in the current directory, ls folder lists the files and subdirectories in the folder, and LS file displays the file information (the default is the file name ).
-type F-print |xargs/bin/rm-fThere are such commands in the system that the normal user is replaced with root at run time.This type of command should be effectively managed to prevent hackers from adding such commands to certain dangerous commands.Our approach is to find these commands and save them to the/root/suid.txt file, and check them regularly.The command is as follows:Find/\ (-perm-4000-fprintf/root/suid.txt '% #m%u%p\n ' \)Find files larger than 100M in the entire system and save them i
AS code:Var num = 22;// Number of starsVar W = 60;Var H = 30;// Width and height of the ellipseVarWdir = 1;Var hdir = 1;// Wdir: orientation to width// Hdir: in the high direction_ Root. createEmptyMovieClip ("MC", 1 );MC. _ x = Stage. width/2;MC. _ y = Stage. height/2;// The center of the center X and Y coordinates are the center of the stageVar angle =(360 * Math. PI/180)/num;// Equal to each other =Radian of a circle (360 * PI/180)/numFo
This time does not follow Bitbake's introduction. Instead of stepping through the steps to solve the problems encountered in the middle
Create a new env.sh to initialize the environment.
The start content is as follows, step by step Add. and runs through the source env.sh
The initial time to create a working directory HelloWorld. If not,
#!/bin/sh
if! [-D HelloWorld];then
mkdir HelloWorld
Fi
1 need to be able to execute Bitbake command
#!/bin/shif! [-D HelloWorld];thenmkdir HelloWorldFi
Expor
not impossible to change the file name or move the file, but it increases the potential for confusion, and CVS is particularly sensitive in the directory where the name is changed. See section 7.4 [move a file]. (* Note: in UNIX, renaming and moving are the same ). The next step depends on the situation in your hands. 3.1 The first step for file creation is to create a file in the repository. This can be done in a variety of ways. ----------------------------------------------------------------
consider your file organization. It is not impossible to change the file name or move the file, but it is added
It is potentially confusing to understand, and CVS is sensitive to changing the name Directory. See Section 7.4 [move a file].
(* Note: in Unix, renaming and moving are the same ).
The next step depends on the situation in your hands.
3.1 create a file
The first step is to create a file in the repository. This can be done in a variety of ways.
3.1.1 create a directory t
Python variables cannot be detailed with numbers.
When writing a python function, you may accidentally find a problem: the variable in python cannot be prefixed with a number. The following function defines the variable 3_num_varchar, and an error is returned when executing the command.
The function is as follows:
def database_feild_varchar_trans(in_feild): ''' transfer the feild if varchar then 3times lang else no transfer ''' feild_split = in_feild.split(' ') is_varchar = feild_split[1].f
When writing a Python function, I stumbled upon a problem: A variable in Python cannot begin with a number, and the following function defines a variable 3_num_varchar, which executes the times incorrectly.
The functions are as follows:
def Database_feild_varchar_trans (in_feild):
' Transfer the
feild if varchar then 3times lang Else no transfer
'
feild_split = In_feild.split (')
Is_varchar = feild_split[1].find (' varchar ')
if Is_varchar >= 0 :
Num_varchar = feild_sp
above. 2, MPICH2 recommended to use mpiexec to perform tasks rather than mpirun, because indeed, mpiexec compared to MPIRun, there are a lot of practical feature, such as: Mpiexec-n 1-host Loginnode Master:-n 32-host SMP slave Mpiexec can do different task publishing strategies for different nodes. As you can see, we're going to publish a process on the loginnode that is master and publishes 32 processes on a machine called SMP (it's clear that this hostname is a 32 CPU machine). It's OK to sep
recommended to use mpiexec to perform tasks rather than mpirun, because indeed, mpiexec compared to MPIRun, there are a lot of practical feature, such as: Mpiexec-n 1-host Loginnode Master:-n 32-host SMP slave Mpiexec can do different task release strategies for different nodes. The above command can see that we are going to publish a process on Loginnode, the executable of the process is master, and 32 processes are published on a machine called SMP (obviously this hostname SMP machine is a 32
* *Cd.. Back to UpstreamDir/ah; Show hidden filesDIR/S D:\*.RMVB >c:\dianying01.txtdel/s/f/q c:\*.rmvb; Remove all rmvb movies on the C drive.Dir *.exedir/p split Screen Displaydir/wdir/aAttrib View propertiesattrib *h hidden filesAttrib-htree/fFormat c: FormattingNET user username password/add Build user auto.exec fileCall C:\5.batNetstat-an > Aaa.txtPing www.baidu.com >> ping.txt append ...Netstat-an > C:\aaa.txtDir TreeCopy con file_exsit.bat cre
name svn mkdir-m "New directory Memo text"/HTTP/Directory full path Example:SVN mkdirNewdirSVN mkdir-m"Making a new dir."svn://Localhost/test/newdir Note: After adding subdirectories, be sure to go back to the root directory update, or in this directory to submit the file will prompt "Commit failed"SVN updateNote: If you manually create a new folder in the checkout directory, NewsubdirSVN mkdirNewsubdir command, SVN will prompt: svn: Try to use "svn add" or "svn add--non-recursive" instead? SVN
$*
13. Linux Modification Time
Date-s 07/5/10
Date-s 09:28:00
#clock-W
14. The correctness of time stamp verification of Checkdate with Unix
15, the establishment of CVS
Environment settings: Specify the path to the CVS library Cvsroot
Tcsh
Setenv cvsroot/path/to/cvsroot (Specify CVS path)
Bash
Cvsroot=/path/to/cvsroot (specify CVS path); Export Cvsroot
Initialization: Initialization of the CVS repository.
CVS Init
Import Library
$ CD Wdir (p
Scripting features: Move files from the specified directory to the target directory and keep the structure intactScenario: Used to remove old data (the author is an FTP server environment) that does not need to be retained in the serverUsage Note: Modify the source directory and target directory in the script and modify the data for the number of days before the moveScript code:#!/bin/bashwdir= "/ftp" #源目录bdir = "/mvbackup/ftp" #目标目录fl = "/tmp/filelist" okl= "/tmp/oklist" erl= "/tmp/ Errlist "
Pandas FoundationImport Pandas ASPDImport NumPy as NP#数字序列MYSERIES=PD. Series ([1,3,5,np.nan,6,8])Print Myseries#日期序列Mydate=pd.date_range (' 20150101 ', periods=42)Print MyDateGenerating sequencesThe results are as follows:0 11 32 53 NaN4 65 8Dtype:float64[2015-01-01, ..., 2015-02-11]Length:42, Freq:d, Timezone:noneTo generate a data setThis blog all content is original, if reproduced please indicate source http://blog.csdn.net/myhaspl/#-*-Coding:utf-8-*-"""Created on Mon Mar 09 11:21:02 2015@au
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.